<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/inc/includemobile.jsp"%>
<html>
<head>
<title>报文内容填写</title>
<link type="text/css" rel="stylesheet" href="${app }css/login.css" />
</head>

<body>
<form id="form1" name="form1" action="/cnaps/cmt!cmtSendSave.do" method="post">
<div id="wrapper">
  <div id="top"><img src="${app }i/logo.png" width="100" height="50" alt="中软国际" />
    <h1>中国现代化支付系统</h1>
    <h2>| 报文内容填写</h2>
    <div id="top_right"><span id="index"></span> </div>
    <div class="clear"></div>
  </div>
 <div>
 	
	<center>
			<table class="mobile" style="width: 90%;" align="center">
			<input type="hidden" name="send_bank" value="${bank }"/>
				<tr class="outHeader" >
					<td colspan="4" style="text-align: left;">
						报文发起     发起行：${bank }  
						接收行：   
								<select name="rec_bank">
									<option value="工商银行">工商银行</option>
									<option value="农业银行">农业银行</option>
									<option value="人民银行">人民银行</option>
								</select>
						审批方式：
						<select name="audit_type"> 
							<option value="1">批量审批</option>
							<option value="2">人工审批</option>
						</select>
						
						报文类型：
						<select name="cmt_type"  onchange="changeCMT(this);">
							<option value="cmt100" selected="selected">汇兑支付报文</option>
							<option value="cmt101">委托收款（划回）支付报文</option>
							<option value="cmt102">托收承付（划回）支付报文</option>
							<option value="cmt103">国库资金汇划(贷记)支付报文</option>
							<option value="cmt105">银行间同业拆借支付报文</option>
							<option value="cmt108">退汇报文</option>
						</select>
					</td>
				</tr>
			</table>
			
			<table class="mobile" style="width: 90%;" align="center">
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						金额：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="cash" value="${map.CASH }"/>
					<td width="20%" align="center" class="outDetail">
						支付交易序号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="pay_code" value="${map.PAY_CODE }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						发起清算行行号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="beginc_bankcode" value="${map.BEGINC_BANKCODE }"/>
					<td width="20%" align="center" class="outDetail">
						发起行行号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="begin_bankcode" value="${map.BEGIN_BANKCODE }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						汇款人开户行行号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="send_bankcode" value="${map.SEND_BANKCODE }"/>
					<td width="20%" align="center" class="outDetail">
						汇款人账号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="send_account" value="${map.SEND_ACCOUNT }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						汇款人名称：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="send_name" value="${map.SEND_NAME }"/>
					<td width="20%" align="center" class="outDetail">
						汇款人地址：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="send_address" value="${map.SEND_ADDRESS }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						接收清算行行号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="receivec_bankcode" value="${map.RECEIVEC_BANKCODE }"/>
					<td width="20%" align="center" class="outDetail">
						接收行行号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="receive_bankcode" value="${map.RECEIVE_BANKCODE }"/>
					</td>
				</tr>				
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						收款人开户行行号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="rec_bankcode" value="${map.REC_BANKCODE }"/>
					<td width="20%" align="center" class="outDetail">
						收款人账号：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="rec_account" value="${map.REC_ACCOUNT }"/>
					</td>
				</tr>				
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						收款人名称：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2">
						<input type="text" name="rec_name" value="${map.REC_NAME }"/>
					<td width="20%" align="center" class="outDetail">
						收款人地址：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" >
						<input type="text" name="rec_address" value="${map.REC_ADDRESS }"/>
					</td>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						业务种类：<font color="red">*</font>
					</td>
					<td width="30%" align="left" class="outDetail2" colspan="3">
						<input type="text" name="business" value="${map.BUSINESS }"/>
				</tr>
				<tr height="20">
				    <td width="20%" align="center" class="outDetail">
						附言：
					</td>
					<td width="30%" align="left" class="outDetail2" colspan="3">
						<textarea rows="4" cols="70" name="remark">${map.REMARK }</textarea>
				</tr>				
				
			</table>
			</center>
			<br />
			<p align="center">
				<input type="button" class="btn" value="保 存" onclick="sendCmt(this);" />
				<input type="button" class="btn" value="关 闭"
					onclick="window.close();" />
			</p>
  </div>
  <iframe src="${app }footer.html" width="100%" height="55px" style="margin-top: 300px;" scrolling="no" frameborder="0"></iframe>
</div>
</form>
</body>

 <script type="text/javascript">
 	    function sendCmt(src){
			form1.submit();		
       }
       
       function changeCMT(src){
       	if(src.value!='cmt100'){
       		alert('目前该功能只有汇兑支付报文');
       		src.options[0].selected=true;
       		return false;
       	}
       }
 	
 </script>
</html>
